package com.shujia.java.day1;

import java.util.Scanner;

public class Demo6 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        System.out.println("请输入年龄");
        int age = sc.nextInt();//年龄
        System.out.println("请输入身高");
        int length = sc.nextInt();//身高

        if (age < 23) {

            //嵌套if
            if (length > 175) {
                System.out.println("匹配成功");
            } else {
                System.out.println("out");
            }

        } else {
            System.out.println("out");
        }


    }
}
